﻿using NLog;
namespace OrderingFoot.Core
{
    /// <summary>
    /// LogTool
    /// </summary>
    public class LogTool
    {
        private static readonly ILogger _logger = LogManager.GetLogger("log");

        /// <summary>
        /// 一般日志
        /// </summary>
        public static void Info(string msg)
        {
            if (!string.IsNullOrEmpty(msg))
            {
                _logger?.Info(msg);
            }
        }

        /// <summary>
        /// 错误日志
        /// </summary>
        public static void Error(string msg)
        {
            if (!string.IsNullOrEmpty(msg))
            {
                _logger?.Error(msg);
            }
        }
    }
}
